package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: 张波
 * @Time: 2025/8/21 20:29
 */
@Controller
@RequestMapping("/user")
public class UserController {

	@RequestMapping("/select.do")
	public ModelAndView select(ModelAndView mv, HttpServletRequest request){
		request.setAttribute("msg","查找返回的数据");
		mv.setViewName("/index.jsp");
		return mv;
	}

	@RequestMapping("/update.do")
	public String update(ModelAndView mv,HttpServletRequest request){
		request.setAttribute("msg","更新返回的数据");
		return "/index.jsp";
	}
}